/**
 * @Author: Yosoo
 * @Date: 2025/5/16 15:19
 * @Description:
 */
package com.sky.service;

import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.result.PageResult;

import java.util.List;


public interface CategoryService {

    /**
     * 分类分页查询
     * @Author:     Yosoo
     * @Date:       2025/5/16 15:24
     * @Description:
     * @param categoryPageQueryDTO
     * @return
     */
    PageResult pageQuery(CategoryPageQueryDTO categoryPageQueryDTO);

    /**
     * 分类修改
     * @Author:     Yosoo
     * @Date:       2025/5/16 15:41
     * @Description:
     * @param build
     */
    void update(Category build);

    void save(Category category);

    List<Category> list(Integer type);

    void delete(Long id);
}
